<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript">
function sayHello(name, container) {

var soapData="<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\"><Body><getHello xmlns=\"\"><name>ads</name></getHello></Body></Envelope>";
var callback = function(transport){
			try {
				var xml = $(transport).text();
				alert(xml);
			}catch (e) {alert(e);}
};
	  $.ajax({
		type: "GET",
		url: "ZHSalary.xml",
		dataType: "xml",
		success: function(xml){
			soapData = xml;
			alert($(xml).text());
			$.ajax({
				type:"POST",
				url:"http://localhost:8080/axis/services/Corticon?ZHSalary", 
				contentType:"application/xml", 
				processData:false,
				data:soapData, 
				beforeSend:function (xhr) {
					xhr.setRequestHeader("Content-Type", "application/xml");
					xhr.setRequestHeader("SOAPAction", "\"\"");
				}, 
				success:callback
				});
		}
	  });
	


}
</script>
		<style>
body {
	font-family: verdana;
}

#container {
	margin: 10pt;
	border: 1pt solid black;
	padding: 2pt;
}

#result {
	padding: 5pt;
	background-color: #eeeeee;
}

#soap {
	padding: 5pt;
	background-color: #eeeeee;
	font-size: 10pt;
}
</style>
	</head>
	<body>
		<input name="name" id="name" />
		<input value="Invoke the Web Service" type="button" onclick="sayHello($('name').value,$('result'))" />
		<div id="container">
			Result:
			<div id="result">
			</div>
			<div id="soap">
			</div>
		</div>
	</body>
</html>